const dir = require('process').argv[2] || '/share/media/Huluwa'
const duration = require('process').argv[3] || 600
const fileTool = require('./tools/file')

fileTool.rmNotMedia(dir)
fileTool.rmSmallVideo(dir,duration).then(()=>{
    fileTool.rmEmptyDirRecursive(dir)
})
